<extend name="Public:base" />
<block name="content">
	<form id="validation-form" method="post">
    <style type="text/css">
        li{
            list-style: none;;
        }
		table{
			text-align: center;
		}
		.mytableer tbody > tr > td{
			border: none;
		}
    </style>

		<a href="{:U('User/Manage')}" class="btn btn-sm btn-primary radius5 marginT10 marginB10"/>返回</a>



		<div class="table-responsive">
			<table  class="table table-striped table-bordered table-hover">
				<thead>
					<th style="text-align: center">默认地址</th>
					<th style="text-align: center">姓名</th>
					<th style="text-align: center">电话</th>
					<th style="text-align: center">地址</th>
				</thead>
				<tbody>
				<volist name="address" id="vo">
				<tr>
					<php>if($vo['status']=='1'){</php>
					<td><input type="radio" readonly checked="checked"/></td>
					<php>}else{</php>
					<td><input type="radio" disabled="disabled"/></td>
					<php>}</php>
					<td>{$vo.contacts}</td>
					<td>{$vo.phone}</td>
					<td>{$vo.address}</td>
				</tr>
				</tbody>
				</volist>
			</table>
		</div>

</form>

</block>
<block name="javascript">
<script>
$(function(){

	$("#search").click(function () {
        var url = $(this).attr('url');
        var query = $('.search-form').find('input,select').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
        query = query.replace(/^&/g, '');
        if (url.indexOf('?') > 0) {
            url += '&' + query;
        } else {
            url += '?' + query;
        }
        window.location.href = url;
    });

});
</script>
</block>